package my.springboot3.service;

import my.springboot3.dto.entity.Category;

import java.util.List;

public interface CategoryService {

    List<Category> ListAll();

    /**
     * 根据id查询分类
     * @param id
     * @return
     */
    Category findById(Integer id);

    void update(Category category);

    void deleteById(Integer id);

    void add(Category category);
}
